/*
TomorIT: a general data compression project aimed to be quick and efficient,
by Arpad Fekete, in Hungarian Fekete Árpád, born: Kiskunfélegyháza, 1982.04.28.
homepages: http://mathboasting.blogspot.com, http://fecowebs.ourproject.org,
motivation: Árpád aims to re-learn C++ and maybe enter the Hutter Prize,
and collaboration will be possible if the first official release is ready...

The code is shared by the MIT License:

Copyright (c) 2015 Arpad Fekete

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

--- In this (header + class) ---
Main class for converting a raw character stream or a raw binary stream to a
sequence of numbers, by departing the stream into tokens or words or single
bytes, and assigning an integer number to each of the tokens or words or single
bytes. So, this should convert the input from a physical state to a
mathematical model. Ideally, this operation should not consume too much memory,
so the instances of tokens should not be memorized by the program, but computed
real-time instead, converting the byte stream to a stream of integer numbers.

Although this class could have been abstract, let's give it a trivial
implementation... Although this is like a header file, for the templates it
should also carry its implementation for technical reasons, and maybe the
easiest way of doing that is by not using a header file at all.
*/
#include <istream>
#include "ToSequence.cpp"

template<typename IntegerType> class ToModelSequence: public ToSequence<IntegerType> {
public:
    // constructor
    ToModelSequence(std::istream &is);

    // otherwise, let's just override the methods of ToSequence!
    virtual IntegerType getNext();
    virtual bool getNextSuccess();
    virtual int getNext(IntegerType*, int);

    // IntegerType may depend on the input, otherwise it really
    // means an integer number here, so it must be the smallest fit
};

template<typename IntegerType> ToModelSequence<IntegerType>::ToModelSequence(std::istream &is): ToSequence<IntegerType>(is) {
   // maybe more
}

template<typename IntegerType> IntegerType ToModelSequence<IntegerType>::getNext() {
    // TODO: implementation!
    return ToSequence<IntegerType>::getNext();
}

template<typename IntegerType> bool ToModelSequence<IntegerType>::getNextSuccess() {
    // TODO: implementation!
    return ToSequence<IntegerType>::getNextSuccess();
}

template<typename IntegerType> int ToModelSequence<IntegerType>::getNext(IntegerType* it, int in) {
    // TODO: implementation!
    return ToSequence<IntegerType>::getNext(it, in);
}

